package com.sxt.springcloud.opd;

import com.sxt.opd.vo.JiuzhenVo;
import com.sxt.springcloud.opd.fallback.JiuzhenClientFallbackService;
import com.sxt.sys.common.DataGridView;
import com.sxt.sys.common.ResultObj;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@Component
@FeignClient(value = "SPRINGCLOUD-PROVIDER-OPD",fallbackFactory = JiuzhenClientFallbackService.class)
@RequestMapping("/p/jiuzhen")
public interface JiuzhenClientService {
    /**
     * 查询所有就诊信息
     * @param jiuzhenVo
     * @return
     */
    @RequestMapping("loadAllJiuzhen")
    DataGridView loadAllJiuzhen(@RequestBody JiuzhenVo jiuzhenVo);

    /**
     * 添加
     */
    @RequestMapping("addJiuzhen")
    ResultObj addJiuzhen(@RequestBody JiuzhenVo jiuzhenVo);


    /**
     * 修改
     */
    @RequestMapping("updateJiuzhen")
    ResultObj updateJiuzhen(@RequestBody JiuzhenVo jiuzhenVo);


    /**
     * 删除
     */
    @RequestMapping("deleteJiuzhen")
    ResultObj deleteJiuzhen(@RequestParam("id") Integer id);
}
